package com.company.day1;
import java.util.Scanner;
// 将摄氏温度转换为华氏温度
public class TemperatureTrans {
    public static void main (String[] args){
        Scanner input = new Scanner(System.in);
        System.out.print("Enter a degree in Celsius:");
        double Celsius = input.nextDouble();
        double Fahrenheit = 9.0 / 5 * Celsius + 32;
        System.out.println(Celsius + " Celsius is " + Fahrenheit +" Fahrenheit ");
    }
}

